<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>群组推荐 - 友趣社交</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #7209b7;
            --secondary: #3f37c9;
            --accent: #4895ef;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --success: #38b000;
            --danger: #e63946;
            --warning: #ffb703;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.8rem 1rem;
        }
        
        .navbar-brand {
            color: var(--primary);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.4rem;
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin: 0 5px;
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        .search-container {
            max-width: 500px;
            margin: 2rem auto;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .view-all {
            color: var(--primary);
            font-weight: 500;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .view-all:hover {
            color: var(--secondary);
            text-decoration: underline;
        }
        
        /* 群组卡片基础样式 */
        .group-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            margin-bottom: 1.5rem;
        }
        
        .group-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .group-card-body {
            padding: 1.5rem;
        }
        
        .group-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            transition: var(--transition);
        }
        
        .group-card:hover .group-title {
            color: var(--primary);
        }
        
        .group-description {
            color: var(--gray);
            font-size: 0.95rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .group-meta {
            display: flex;
            align-items: center;
            color: var(--gray);
            font-size: 0.85rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .group-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid var(--light-gray);
        }
        
        .stats {
            display: flex;
            gap: 1.5rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .group-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .group-author {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 1rem;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            font-size: 0.9rem;
        }
        
        .author-name {
            font-weight: 500;
        }
        
        /* 不同布局的群组卡片样式 */
        /* 1. 带单张图片的卡片 */
        .group-card-single-image .group-image {
            height: 180px;
            overflow: hidden;
        }
        
        .group-card-single-image .group-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .group-card-single-image:hover .group-image img {
            transform: scale(1.05);
        }
        
        /* 2. 无图片的卡片 */
        .group-card-no-image {
            border-left: 4px solid var(--primary);
        }
        
        /* 3. 带多张图片的卡片 */
        .group-card-multiple-images .group-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            height: 180px;
        }
        
        .group-card-multiple-images .group-images img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 4. 横向布局卡片 */
        .group-card-horizontal {
            display: flex;
            height: 220px;
        }
        
        .group-card-horizontal .group-image {
            flex: 0 0 35%;
            height: 100%;
        }
        
        .group-card-horizontal .group-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .group-card-horizontal .group-card-body {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .group-card-horizontal .group-stats {
            margin-top: auto;
        }
        
        @media (max-width: 768px) {
            .group-card-horizontal {
                flex-direction: column;
                height: auto;
            }
            
            .group-card-horizontal .group-image {
                flex: none;
                height: 180px;
            }
        }
        
        /* 5. 网格布局卡片 */
        .group-card-grid {
            text-align: center;
        }
        
        .group-card-grid .group-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            overflow: hidden;
            border: 3px solid var(--light);
            box-shadow: var(--shadow);
        }
        
        .group-card-grid .group-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 分类标签 */
        .category-tabs {
            display: flex;
            overflow-x: auto;
            padding-bottom: 0.5rem;
            margin-bottom: 2rem;
            gap: 0.75rem;
        }
        
        .category-tab {
            padding: 0.5rem 1.25rem;
            background-color: white;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            white-space: nowrap;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .category-tab.active {
            background-color: var(--primary);
            color: white;
        }
        
        .category-tab:hover:not(.active) {
            background-color: var(--light);
        }
        
        /* 加载更多按钮 */
        .load-more {
            display: block;
            margin: 2rem auto;
            padding: 0.75rem 2rem;
            background-color: white;
            border: 1px solid var(--primary);
            color: var(--primary);
            border-radius: 8px;
            font-weight: 500;
            transition: var(--transition);
        }
        
        .load-more:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 页脚样式 */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 5rem;
        }
        
        .footer-col {
            margin-bottom: 2rem;
        }
        
        .footer-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links a {
            color: var(--light-gray);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--light-gray);
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users"></i>
                <span>友趣</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">人际关系</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">兴趣小组</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">活动中心</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3">
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人主页</a></li>
                            <li><a class="dropdown-item" href="#">我的群组</a></li>
                            <li><a class="dropdown-item" href="#">设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 搜索区域 -->
    <div class="search-container">
        <div class="input-group">
            <input type="text" class="form-control form-control-lg" placeholder="搜索群组...">
            <button class="btn btn-primary btn-lg" type="button">
                <i class="fas fa-search"></i>
            </button>
        </div>
    </div>

    <!-- 分类标签 -->
    <div class="container">
        <div class="category-tabs">
            <div class="category-tab active">全部群组</div>
            <div class="category-tab">音乐</div>
            <div class="category-tab">电影</div>
            <div class="category-tab">阅读</div>
            <div class="category-tab">摄影</div>
            <div class="category-tab">旅行</div>
            <div class="category-tab">美食</div>
            <div class="category-tab">健身</div>
            <div class="category-tab">科技</div>
            <div class="category-tab">艺术</div>
            <div class="category-tab">游戏</div>
        </div>
    </div>

    <!-- 主要内容 -->
    <div class="container py-4">
        <!-- 热门推荐群组 -->
        <div class="mb-8">
            <div class="section-header">
                <h2 class="section-title">热门推荐群组</h2>
                <a href="#" class="view-all">查看全部 <i class="fas fa-chevron-right"></i></a>
            </div>
            
            <div class="row">
                <!-- 带单张图片的群组卡片 -->
                <div class="col-lg-4 col-md-6">
                    <div class="group-card group-card-single-image">
                        <div class="group-image">
                            <img src="https://picsum.photos/id/1082/600/400" alt="独立音乐爱好者" class="img-fluid">
                        </div>
                        <div class="group-card-body">
                            <div class="group-author">
                                <img src="https://picsum.photos/id/1012/100/100" alt="李明" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">李明 创建</div>
                                    <div class="text-muted">音乐制作人</div>
                                </div>
                            </div>
                            <h3 class="group-title">独立音乐爱好者</h3>
                            <p class="group-description">分享独立音乐作品，交流创作经验，寻找志同道合的音乐伙伴一起创作和演出。</p>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-music"></i>
                                    <span>音乐</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-users"></i>
                                    <span>2,451 成员</span>
                                </div>
                            </div>
                            <div class="group-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>12.5k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-comment"></i>
                                        <span>328</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-bookmark"></i>
                                        <span>846</span>
                                    </div>
                                </div>
                                <div class="group-actions">
                                    <button class="btn btn-primary btn-sm">加入</button>
                                    <button class="btn btn-light btn-sm">
                                        <i class="fas fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 带多张图片的群组卡片 -->
                <div class="col-lg-4 col-md-6">
                    <div class="group-card group-card-multiple-images">
                        <div class="group-images">
                            <img src="https://picsum.photos/id/1059/300/300" alt="电影截图1" class="img-fluid">
                            <img src="https://picsum.photos/id/1060/300/300" alt="电影截图2" class="img-fluid">
                            <img src="https://picsum.photos/id/1061/300/300" alt="电影截图3" class="img-fluid">
                        </div>
                        <div class="group-card-body">
                            <div class="group-author">
                                <img src="https://picsum.photos/id/1027/100/100" alt="张小艺" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">张小艺 创建</div>
                                    <div class="text-muted">影评人</div>
                                </div>
                            </div>
                            <h3 class="group-title">独立电影鉴赏</h3>
                            <p class="group-description">探讨独立电影的艺术价值，分享小众佳片，组织线下观影活动，与同好交流观影感受。</p>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-film"></i>
                                    <span>电影</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-users"></i>
                                    <span>1,872 成员</span>
                                </div>
                            </div>
                            <div class="group-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>9.8k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-comment"></i>
                                        <span>512</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-bookmark"></i>
                                        <span>632</span>
                                    </div>
                                </div>
                                <div class="group-actions">
                                    <button class="btn btn-primary btn-sm">加入</button>
                                    <button class="btn btn-light btn-sm">
                                        <i class="fas fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的群组卡片 -->
                <div class="col-lg-4 col-md-6">
                    <div class="group-card group-card-no-image">
                        <div class="group-card-body">
                            <div class="group-author">
                                <img src="https://picsum.photos/id/1066/100/100" alt="王读书" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">王读书 创建</div>
                                    <div class="text-muted">图书馆管理员</div>
                                </div>
                            </div>
                            <h3 class="group-title">文学爱好者读书会</h3>
                            <p class="group-description">分享阅读心得，推荐优秀书籍，每月组织线上线下读书讨论会，深度解析文学作品。</p>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-book"></i>
                                    <span>阅读</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-users"></i>
                                    <span>3,127 成员</span>
                                </div>
                            </div>
                            <div class="group-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>15.2k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-comment"></i>
                                        <span>876</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-bookmark"></i>
                                        <span>1,245</span>
                                    </div>
                                </div>
                                <div class="group-actions">
                                    <button class="btn btn-primary btn-sm">加入</button>
                                    <button class="btn btn-light btn-sm">
                                        <i class="fas fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 最新创建群组 -->
        <div class="mb-8">
            <div class="section-header">
                <h2 class="section-title">最新创建群组</h2>
                <a href="#" class="view-all">查看全部 <i class="fas fa-chevron-right"></i></a>
            </div>
            
            <div class="row">
                <!-- 横向布局群组卡片 -->
                <div class="col-12">
                    <div class="group-card group-card-horizontal">
                        <div class="group-image">
                            <img src="https://picsum.photos/id/1055/600/400" alt="城市街头摄影" class="img-fluid">
                        </div>
                        <div class="group-card-body">
                            <div class="group-author">
                                <img src="https://picsum.photos/id/1074/100/100" alt="刘摄影" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">刘摄影 创建于 3天前</div>
                                    <div class="text-muted">职业摄影师</div>
                                </div>
                            </div>
                            <h3 class="group-title">城市街头摄影</h3>
                            <p class="group-description">记录城市瞬间，分享街头摄影技巧，探讨构图与光影，组织城市摄影采风活动，捕捉城市的灵魂与故事。无论你使用专业相机还是手机，都欢迎加入交流。</p>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-camera"></i>
                                    <span>摄影</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-users"></i>
                                    <span>346 成员</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>全国</span>
                                </div>
                            </div>
                            <div class="group-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>2.1k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-comment"></i>
                                        <span>87</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-heart"></i>
                                        <span>245</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-bookmark"></i>
                                        <span>156</span>
                                    </div>
                                </div>
                                <div class="group-actions">
                                    <button class="btn btn-primary btn-sm">加入</button>
                                    <button class="btn btn-light btn-sm">
                                        <i class="fas fa-heart"></i>
                                    </button>
                                    <button class="btn btn-light btn-sm">
                                        <i class="fas fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="col-12">
                    <div class="group-card group-card-horizontal">
                        <div class="group-image">
                            <img src="https://picsum.photos/id/1080/600/400" alt="环球旅行分享" class="img-fluid">
                        </div>
                        <div class="group-card-body">
                            <div class="group-author">
                                <img src="https://picsum.photos/id/1062/100/100" alt="张旅行" class="author-avatar">
                                <div class="author-info">
                                    <div class="author-name">张旅行 创建于 1周前</div>
                                    <div class="text-muted">旅行博主</div>
                                </div>
                            </div>
                            <h3 class="group-title">环球旅行分享</h3>
                            <p class="group-description">分享旅行攻略，交流旅行体验，推荐小众目的地，寻找旅行同伴，探讨旅行摄影技巧。无论你是资深旅行者还是旅行爱好者，都能在这里找到有用的信息和志同道合的朋友。</p>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-plane"></i>
                                    <span>旅行</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-users"></i>
                                    <span>782 成员</span>
                                </div>
                                <div class="meta-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>全球</span>
                                </div>
                            </div>
                            <div class="group-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>5.3k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-comment"></i>
                                        <span>215</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-heart"></i>
                                        <span>643</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-bookmark"></i>
                                        <span>327</span>
                                    </div>
                                </div>
                                <div class="group-actions">
                                    <button class="btn btn-primary btn-sm">加入</button>
                                    <button class="btn btn-light btn-sm">
                                        <i class="fas fa-heart"></i>
                                    </button>
                                    <button class="btn btn-light btn-sm">
                                        <i class="fas fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 为你推荐群组 -->
        <div class="mb-8">
            <div class="section-header">
                <h2 class="section-title">为你推荐群组</h2>
                <a href="#" class="view-all">换一批 <i class="fas fa-sync-alt"></i></a>
            </div>
            
            <div class="row">
                <!-- 网格布局群组卡片 -->
                <div class="col-lg-3 col-md-4 col-sm-6">
                    <div class="group-card group-card-grid">
                        <div class="group-card-body">
                            <div class="group-image">
                                <img src="https://picsum.photos/id/1080/200/200" alt="咖啡品鉴爱好者" class="img-fluid">
                            </div>
                            <h3 class="group-title">咖啡品鉴爱好者</h3>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-coffee"></i>
                                    <span>美食</span>
                                </div>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>1,243 成员</span>
                            </div>
                            <div class="group-stats" style="justify-content: center; gap: 1rem; margin-top: 1rem;">
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i>
                                    <span>532</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>218</span>
                                </div>
                            </div>
                            <button class="btn btn-primary btn-sm w-100 mt-2">加入群组</button>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-3 col-md-4 col-sm-6">
                    <div class="group-card group-card-grid">
                        <div class="group-card-body">
                            <div class="group-image">
                                <img src="https://picsum.photos/id/1069/200/200" alt="现代艺术鉴赏" class="img-fluid">
                            </div>
                            <h3 class="group-title">现代艺术鉴赏</h3>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-palette"></i>
                                    <span>艺术</span>
                                </div>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>876 成员</span>
                            </div>
                            <div class="group-stats" style="justify-content: center; gap: 1rem; margin-top: 1rem;">
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i>
                                    <span>345</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>176</span>
                                </div>
                            </div>
                            <button class="btn btn-primary btn-sm w-100 mt-2">加入群组</button>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-3 col-md-4 col-sm-6">
                    <div class="group-card group-card-grid">
                        <div class="group-card-body">
                            <div class="group-image">
                                <img src="https://picsum.photos/id/1071/200/200" alt="科技创新讨论" class="img-fluid">
                            </div>
                            <h3 class="group-title">科技创新讨论</h3>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-microchip"></i>
                                    <span>科技</span>
                                </div>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>2,154 成员</span>
                            </div>
                            <div class="group-stats" style="justify-content: center; gap: 1rem; margin-top: 1rem;">
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i>
                                    <span>876</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>643</span>
                                </div>
                            </div>
                            <button class="btn btn-primary btn-sm w-100 mt-2">加入群组</button>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-3 col-md-4 col-sm-6">
                    <div class="group-card group-card-grid">
                        <div class="group-card-body">
                            <div class="group-image">
                                <img src="https://picsum.photos/id/1058/200/200" alt="健康健身交流" class="img-fluid">
                            </div>
                            <h3 class="group-title">健康健身交流</h3>
                            <div class="group-meta">
                                <div class="meta-item">
                                    <i class="fas fa-dumbbell"></i>
                                    <span>健身</span>
                                </div>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>3,421 成员</span>
                            </div>
                            <div class="group-stats" style="justify-content: center; gap: 1rem; margin-top: 1rem;">
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i>
                                    <span>1,254</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>987</span>
                                </div>
                            </div>
                            <button class="btn btn-primary btn-sm w-100 mt-2">加入群组</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 按分类推荐 -->
        <div class="mb-8">
            <h2 class="section-title">按分类浏览</h2>
            
            <!-- 游戏分类群组 -->
            <div class="mb-6">
                <h3 class="h5 mb-3 text-primary">游戏</h3>
                <div class="row">
                    <div class="col-lg-2 col-md-3 col-sm-4">
                        <div class="group-card">
                            <div class="group-card-body p-3">
                                <h3 class="group-title fs-6">独立游戏开发者</h3>
                                <div class="group-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-users"></i>
                                        <span>1,543</span>
                                    </div>
                                </div>
                                <button class="btn btn-sm btn-outline-primary w-100 mt-2">加入</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-lg-2 col-md-3 col-sm-4">
                        <div class="group-card">
                            <div class="group-card-body p-3">
                                <h3 class="group-title fs-6">桌面游戏爱好者</h3>
                                <div class="group-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-users"></i>
                                        <span>876</span>
                                    </div>
                                </div>
                                <button class="btn btn-sm btn-outline-primary w-100 mt-2">加入</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-lg-2 col-md-3 col-sm-4">
                        <div class="group-card">
                            <div class="group-card-body p-3">
                                <h3 class="group-title fs-6">电竞讨论组</h3>
                                <div class="group-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-users"></i>
                                        <span>3,245</span>
                                    </div>
                                </div>
                                <button class="btn btn-sm btn-outline-primary w-100 mt-2">加入</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-lg-2 col-md-3 col-sm-4">
                        <div class="group-card">
                            <div class="group-card-body p-3">
                                <h3 class="group-title fs-6">游戏设计与策划</h3>
                                <div class="group-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-users"></i>
                                        <span>654</span>
                                    </div>
                                </div>
                                <button class="btn btn-sm btn-outline-primary w-100 mt-2">加入</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-lg-2 col-md-3 col-sm-4">
                        <div class="group-card">
                            <div class="group-card-body p-3">
                                <h3 class="group-title fs-6">怀旧游戏收藏</h3>
                                <div class="group-meta">
                                    <div class="meta-item">
                                        <i class="fas fa-users"></i>
                                        <span>432</span>
                                    </div>
                                </div>
                                <button class="btn btn-sm btn-outline-primary w-100 mt-2">加入</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多按钮 -->
        <button class="load-more">
            <i class="fas fa-spinner fa-spin me-2"></i>加载更多群组
        </button>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">友趣</h3>
                    <p>友趣是一个基于兴趣的社交平台，帮助你找到志同道合的朋友，一起分享快乐，探索世界。</p>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">平台功能</h3>
                    <ul class="footer-links">
                        <li><a href="#">交友推荐</a></li>
                        <li><a href="#">兴趣小组</a></li>
                        <li><a href="#">活动中心</a></li>
                        <li><a href="#">兴趣测试</a></li>
                        <li><a href="#">话题讨论</a></li>
                    </ul>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">关于我们</h3>
                    <ul class="footer-links">
                        <li><a href="#">平台介绍</a></li>
                        <li><a href="#">团队成员</a></li>
                        <li><a href="#">加入我们</a></li>
                        <li><a href="#">联系方式</a></li>
                        <li><a href="#">用户反馈</a></li>
                    </ul>
                </div>
                
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">联系我们</h3>
                    <ul class="footer-links">
                        <li><i class="fas fa-envelope me-2"></i> contact@youqu.com</li>
                        <li><i class="fas fa-phone me-2"></i> 400-123-4567</li>
                        <li><i class="fas fa-map-marker-alt me-2"></i> 北京市朝阳区创意园区A座501</li>
                    </ul>
                </div>
            </div>
            
            <div class="copyright">
                &copy; 2023 友趣社交平台 版权所有 | 京ICP备12345678号
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 分类标签切换
        document.querySelectorAll('.category-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                // 移除所有标签的active类
                document.querySelectorAll('.category-tab').forEach(t => {
                    t.classList.remove('active');
                });
                
                // 给当前点击的标签添加active类
                this.classList.add('active');
                
                // 这里可以添加分类筛选的逻辑
            });
        });
        
        // 加入群组按钮交互
        document.querySelectorAll('.btn-primary').forEach(button => {
            if (button.textContent.includes('加入')) {
                button.addEventListener('click', function() {
                    this.innerHTML = '<i class="fas fa-check"></i> 已加入';
                    this.disabled = true;
                    this.classList.remove('btn-primary');
                    this.classList.add('btn-success');
                });
            }
        });
        
        // 收藏按钮交互
        document.querySelectorAll('.btn-light').forEach(button => {
            if (button.innerHTML.includes('bookmark')) {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('btn-primary');
                        this.classList.remove('btn-light');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('btn-primary');
                        this.classList.add('btn-light');
                    }
                });
            }
        });
        
        // 点赞按钮交互
        document.querySelectorAll('.btn-light').forEach(button => {
            if (button.innerHTML.includes('heart')) {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('btn-danger');
                        this.classList.remove('btn-light');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('btn-danger');
                        this.classList.add('btn-light');
                    }
                });
            }
        });
        
        // 加载更多按钮交互
        document.querySelector('.load-more').addEventListener('click', function() {
            const spinner = this.querySelector('i');
            spinner.classList.add('fa-spin');
            
            // 模拟加载延迟
            setTimeout(() => {
                spinner.classList.remove('fa-spin');
                // 这里可以添加加载更多群组的逻辑
            }, 1500);
        });
    </script>
</body>
</html>
    

